package cn.itcast.hotel.client;

import cn.itcast.hotel.pojo.Hotel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="hotel-admin",url="localhost:8099/hotel")
public interface HotelAdminClient {
    @GetMapping("/{id}")
    Hotel queryById(@PathVariable("id") Long id);
}
